//
//  CHSViewController.m
//  ZXShareKit
//
//  Created by 海参 on 11/26/2021.
//  Copyright (c) 2021 海参. All rights reserved.
//

#import "CHSViewController.h"
#import <ZXShareKit/ZXShareKit.h>

@interface CHSViewController ()

@end

@implementation CHSViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)shareAction:(id)sender {
    [ShareManager setPreDefinePlatforms:@[@(CAISocialPlatformType_WechatSession),@(CAISocialPlatformType_WechatTimeLine),@(CAISocialPlatformType_DingDing)]];

    [self shareImage];
}

- (void)shareImage{
    ShareMessageImageModel *model = [ShareMessageImageModel shareObjectWithTitle:@"标题" descr:@"今天看到新闻" thumbImage:nil];
    model.thumbImage = @"https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics4.baidu.com%2Ffeed%2F7c1ed21b0ef41bd5f63cbc32c9d900c238db3d91.jpeg%3Ftoken%3D65d53abff9fbcee52dd5481bafe3ce86&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=w931&n=0&g=0n&q=75&fmt=auto?sec=1638464400&t=4ff168e4c866b05a50cc6367e3645b60";
    model.shareImage = @"https://gimg3.baidu.com/search/src=http%3A%2F%2Fpics4.baidu.com%2Ffeed%2F7c1ed21b0ef41bd5f63cbc32c9d900c238db3d91.jpeg%3Ftoken%3D65d53abff9fbcee52dd5481bafe3ce86&refer=http%3A%2F%2Fwww.baidu.com&app=2021&size=w931&n=0&g=0n&q=75&fmt=auto?sec=1638464400&t=4ff168e4c866b05a50cc6367e3645b60";
    [ShareManager showShareMenuViewInWindowWithData:model];
}

@end
